/* 
* @Author: yuonly
* @Date:   2014-05-19 10:30:14
* @Last Modified by:   yuonly
* @Last Modified time: 2014-05-19 15:20:57
*/

// $(document).ready(function(){

// });
function addPics(){
	var html = '<li style="height:36px;"><input type="file" name="pics[]"/>\
				<button class="hd-cancel" type="button" onclick="delPics(this);">删除</button></li>';
	$('#content_pic').append(html);
	

}
function delPics(obj){
	$(obj).parent().remove();
}

function delold(obj){
	if(confirm('确定要删除么？')){
		var picid = $(obj).attr('picid');
		$.post(CONTROL+'&m=delPic',{picid:picid},function(data){

			$(obj).parent().remove();
    	});
	}else{

	}
	
}